provide dist/underscore.string.min.js
in the npm package (again)
#402
+0
−1
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Browser window's context and Node.js context are different in nw.js and it takes some time to switch between them.
Therefore, when
underscore.string
is used inside an nwjs-based application, it sometimes makes sense to do both of the following:underscore.string
as a dependency inpackage.json
(example) and let it be installed withnpm install
underscore.string
in a browser's window context with<script>
(example) instead of (or in addition to) Node.js context withrequire()
.However, the npm package of
underscore.string
does not currently contain thedist/underscore.string.min.js
file that could be installed and referenced by thescript
element.That's why this pull request partially reverts c3088d4 (and #193): the minified file
dist/underscore.string.min.js
is re-added to the npm package. (The larger filedist/underscore.string.js
continues to be removed from the package.)